import { GetterTree, Getter } from 'vuex'
import { State } from './index'
import { PatientInfo } from './common'

// const patientProducts: Getter<State, any> = (state: State) => {
//     return state.patient.added.map((shape) => {
//         const p: PatientInfo = {
//             id: 12,
//             title: '21',
//             inventory: 32131
//         }
//         return p
//     })
// }


// const patientSt: Getter<State, any> = (state: State) => {
//     return state.patient.checkoutStatus
// }

// const patientProducts: Getter<State, any> = (state: State) => {
//     return state.patient.added.map(shape => {
//         // 此处shape自动推导出Shape类型
//         // ... 详见源码
//     })
// }

const getterTree: GetterTree<State, any> = {
    // patientProducts,
    // patientSt
}

export default getterTree